package com.tajiang.business.bluetooth.dialog;

import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.tajiang.business.R;
import com.tajiang.business.setting.activity.PrintsettingActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2016/8/11.
 */

public class ConnectBlueToothDialog extends Dialog {

    @BindView(R.id.btn_ensure)
    TextView btnEnsure;
    @BindView(R.id.btn_to_setting)
    TextView btnToSetting;

    private Context context;

    public ConnectBlueToothDialog(Context context) {
        super(context, R.style.dialog_operate);
        this.context = context;
        View view = LayoutInflater.from(context).inflate(R.layout.layout_connect_blue_tooth_dialog, null);
        setContentView(view);
        ButterKnife.bind(this);
        initView();
    }

    private void initView() {
        this.setCancelable(false);
    }


    @OnClick(R.id.btn_ensure)
    public void onClick() {
        this.dismiss();
    }

    @OnClick(R.id.btn_to_setting)
    public void onSettingClick() {
        context.startActivity(new Intent(context, PrintsettingActivity.class));
        this.dismiss();
    }
}
